//
//  WillPayRedPacketTableViewCell.m
//  Jlcf_ios
//
//  Created by zl on 2018/10/19.
//  Copyright © 2018年 ski. All rights reserved.
//

#import "WBCRhGJLCFWillPayRedPacketTableViewCellTtKZMv.h"
#import "XvmSEfJLCFListRequestdkZIyb.h"
#import "qBSjUSJLCFListWelfareDataModelmtizAG.h"

@interface WBCRhGJLCFWillPayRedPacketTableViewCellTtKZMv ()
{
    NSInteger _pageNumber;
    
}

@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *EQYdIUretitleLabelKGSTDZ;
@property (nonatomic, strong) NSMutableArray *RcisbXredPacketArrXRdjWT;
@property (nonatomic, strong) UITableView *spSOIjtableviewymNEDf;

@property (nonatomic, weak) UIViewController *PzfRvYcontrollerLrnibE;

@end

@implementation WBCRhGJLCFWillPayRedPacketTableViewCellTtKZMv



- (void)reloadData{
    if(!self.titleLabel){
        self.titleLabel = [UILabel new ];
        self.titleLabel.left =  19;
        self.titleLabel.top = 11;
        
        [self addSubview:self.titleLabel];
    }
    
    if (self.titleLabel) {
        self.titleLabel.textColor = QTZ_Gray200;
        self.titleLabel.font = FONT(10);
        self.titleLabel.text = @"单笔投资最多可选择一个红包";
        
        [self.titleLabel sizeToFit];
    }
    
    if(!self.EQYdIUretitleLabelKGSTDZ){
        self.EQYdIUretitleLabelKGSTDZ = [UILabel new];
        self.EQYdIUretitleLabelKGSTDZ.left = self.titleLabel.right + 80;
        self.EQYdIUretitleLabelKGSTDZ.top = self.titleLabel.top;
        
        [self addSubview:self.EQYdIUretitleLabelKGSTDZ];
    }
    
    if (self.EQYdIUretitleLabelKGSTDZ) {
        self.EQYdIUretitleLabelKGSTDZ.text = @"达到使用条件方可使用";
        self.titleLabel.textColor = QTZ_Gray51;
        self.EQYdIUretitleLabelKGSTDZ.font =FONT(10);
        
        
        [self.EQYdIUretitleLabelKGSTDZ sizeToFit];
        self.EQYdIUretitleLabelKGSTDZ.right = self.right - 10;
    }
    
    if(!self.KtNdmqcollectionviewRizTgm){
        UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
        // 指定内容编辑距离
        layout.sectionInset = UIEdgeInsetsMake(10, 5, 10, 5);
        // 指定UICollectionViewCell的大小（宽高皆是80）
        layout.itemSize = CGSizeMake(160, 60);
        // 指定滚动方向（水平）
        layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
        
        // 指定CollectionView的高度和宽度，以及在UITableViewCell中的位置
        self.KtNdmqcollectionviewRizTgm = [[UICollectionView alloc] initWithFrame:CGRectMake(20, self.titleLabel.bottom + 10, [UIScreen mainScreen].bounds.size.width - 40, 156) collectionViewLayout:layout];
        self.KtNdmqcollectionviewRizTgm.backgroundColor = [UIColor clearColor];
        self.KtNdmqcollectionviewRizTgm.allowsSelection = YES;
        [self addSubview:self.KtNdmqcollectionviewRizTgm];
    }
    if (self.KtNdmqcollectionviewRizTgm) {
//        self.KtNdmqcollectionviewRizTgm.delegate =  self.PzfRvYcontrollerLrnibE;
    }
    
//    [self postRedPacket];
}




- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


@end
